CPPFLAGS+= -I $R/swresources/edroombp_swr/include

SRCS+=

# PROTECTED REGION END

# It is also possible to perform a selective compilation of source files 
# depending on the platform for which the resource is compiled by using
# the flags defined by the framework at configuration time. These flags have a
# known syntax.

ifeq ($(CONFIG_OSAPI_POSIX), y)
# List of files to compile if the destination operating system API is
# POSIX

# PROTECTED REGION ID(edroombp_swr_osapi_posix) ENABLED START

SRCS+=

# PROTECTED REGION END

ifeq ($(CONFIG_OS_LINUX), y)
# List of files to compile for the supported platform
# POSIX(13).Linux(2.6).any.any.any

# PROTECTED REGION ID(edroombp_swr_osapi_posix_13_linux_v2.6_any_any_any) ENABLED START

SRCS+=$(wildcard $R/swresources/edroombp_swr/src/posix/linux_2_6/*.cpp)
SRCS+=$(wildcard $R/swresources/edroombp_swr/src/posix/linux_2_6/*.c)

# PROTECTED REGION END

endif
endif

#ifeq ($(CONFIG_OSAPI_POSIX_1003_B_ERCOS), y)
#ifeq ($(CONFIG_OS_ERCOS_V1), y)

ifeq ($(CONFIG_OS_ERCOS), y)

# List of files to compile for the supported platform
# POSIX(1003.b_ERCOS).ERCOS(v1).any.any.any

# PROTECTED REGION ID(edroombp_swr_posix_1003_b_ercos_ercos_v1_any_any_any) ENABLED START

SRCS+=$(wildcard $R/swresources/edroombp_swr/src/posix/ercos_v1/*.cpp)
SRCS+=$(wildcard $R/swresources/edroombp_swr/src/posix/ercos_v1/*.c)

# PROTECTED REGION END

endif
#endif

ifeq ($(CONFIG_OSAPI_POSIX_1003_B_RTEMS), y)
ifeq ($(CONFIG_OS_RTEMS_4_6), y)
# List of files to compile for the supported platform
# POSIX(1003.b_RTEMS).RTEMS(4.6).any.any.any

# PROTECTED REGION ID(edroombp_swr_posix_1003_b_rtems_rtems_4_6_any_any_any) ENABLED START

SRCS+=$(wildcard $R/swresources/edroombp_swr/src/posix/rtems_4_6/*.cpp)
SRCS+=$(wildcard $R/swresources/edroombp_swr/src/posix/rtems_4_6/*.c)

# PROTECTED REGION END

endif
endif

ifeq ($(CONFIG_OSAPI_RTEMSAPI_4_6), y)
ifeq ($(CONFIG_OS_RTEMS), y)
# List of files to compile for the supported platform
# RTEMSAPI(4.6).RTEMS(4.6).SPARC(v7).any.any

# PROTECTED REGION ID(edroombp_swr_rtemsapi_4_6_rtems_4_6_sparc_v7_any_any) ENABLED START

SRCS+=$(wildcard $R/swresources/edroombp_swr/src/rtemsapi_4_6/rtems_4_6/*.cpp)
SRCS+=$(wildcard $R/swresources/edroombp_swr/src/rtemsapi_4_6/rtems_4_6/*.c)

# PROTECTED REGION END

endif
endif


# It is also possible to create one or more targets to be executed before the
# compilation process. These targets should be included in the list:
# ALT_TARGETS+=

# Also, all the usual compilation and linking flags, like CFLAGS or LDFLAGS are
# available to be used. If you want to set an specific set of compilation flags
# for a certain number of source files, you should define the targets for those
# files in this very file, so that the framework will not use the default ones.

# All the configuration parameters defined for the resource can be used as
# flags for a conditional compilation. A parameter name called PARAMETER_NAME
# defines a label named CONFIG_PARAMETER_NAME whose value can be checked.

